package com.nimitz.modules.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nimitz.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * @ClassName SystemGrade
 * @Author Vincent
 * @Date 2021-08-31-14:18
 * @PackageName com.nimitz.modules.system.domain
 * @Description
 * @Version 1.0.0
 */
@TableName("system_grade")
@ApiModel(value = "SystemGrade对象", description = "岗位表")
public class SystemGrade extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 岗位id
     */
    @ApiModelProperty(value = "岗位id")
    @TableId(value = "grade_id", type = IdType.AUTO)
    private Long gradeId;

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称")
    private String gradeName;


    /**
     * get与set方法
     */

    public Long getGradeId() {
        return gradeId;
    }

    public void setGradeId(Long gradeId) {
        this.gradeId = gradeId;
    }

    public String getGradeName() {
        return gradeName;
    }

    public void setGradeName(String gradeName) {
        this.gradeName = gradeName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("gradeId", getGradeId())
                .append("gradeName", getGradeName())
                .toString();
    }
}

